<%@ page import="testportal.Region" %>



<div class="fieldcontain ${hasErrors(bean: regionInstance, field: 'name', 'error')} ">
	<label for="name">
		<g:message code="region.name.label" default="Name" />
		
	</label>
	<g:textField name="name" value="${regionInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: regionInstance, field: 'description', 'error')} ">
	<label for="description">
		<g:message code="region.description.label" default="Description" />
		
	</label>
	<g:textField name="description" value="${regionInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: regionInstance, field: 'active', 'error')} ">
	<label for="active">
		<g:message code="region.active.label" default="Active" />
		
	</label>
	<g:checkBox name="active" value="${regionInstance?.active}" />
</div>

<div class="fieldcontain ${hasErrors(bean: regionInstance, field: 'environs', 'error')} ">
	<label for="environs">
		<g:message code="region.environs.label" default="Environs" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${regionInstance?.environs?}" var="e">
    <li><g:link controller="environ" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="environ" action="create" params="['region.id': regionInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'environ.label', default: 'Environ')])}</g:link>
</li>
</ul>

</div>

